import request from '@/utils/request'

// 查询邮件附件列表
export function listEmailtemplatefile(query) {
  return request({
    url: '/email/emailtemplatefile/list',
    method: 'get',
    params: query
  })
}

// 查询邮件附件详细
export function getEmailtemplatefile(id) {
  return request({
    url: '/email/emailtemplatefile/' + id,
    method: 'get'
  })
}

// 新增邮件附件
export function addEmailtemplatefile(data) {
  return request({
    url: '/email/emailtemplatefile',
    method: 'post',
    data: data
  })
}

// 修改邮件附件
export function updateEmailtemplatefile(data) {
  return request({
    url: '/email/emailtemplatefile',
    method: 'put',
    data: data
  })
}

// 删除邮件附件
export function delEmailtemplatefile(id) {
  return request({
    url: '/email/emailtemplatefile/' + id,
    method: 'delete'
  })
}
